package Leo.security;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 专门用于获取yml的配置信息
 */
@Component
public class SystemProperties {

    /**
     * Security 模块
     */
    @Value("${setting.security.login-url:#'/login'}")
    public String LOGIN_URL;

    @Value("${setting.security.login-process-url:'/login/form'}")
    public String LOGIN_PROCESS_URL;


    /**
     *  social 模块
    * */
    @Value("${setting.weixin.appid}")
    public String WEI_XIN_APP_ID;
    @Value("${setting.weixin.secret}")
    public String WEI_XIN_SECRET;
    @Value("${setting.teambition.clientid}")
    public String TEAMBITION_CLIENT_ID;
    @Value("${setting.teambition.clientsecret}")
    public String TEAMBITION_CLIENT_SECRET;
    @Value("${setting.qq.appid}")
    public String QQ_APP_ID;
    @Value("${setting.qq.secret}")
    public String QQ_SECRET;
    @Value("${setting.social.authentication-url:#{null}}")
    public String SOCIAL_URL;
    @Value("${setting.social.signup-url:#{null}}")
    public String SIGN_UP_URL;
    @Value("${setting.social.signin-url:#{null}}")
    public String SIGN_IN_URL;

    public final String QQ_PROVIDER_ID = "qq";
}
